package com.changgou.goods.dao;

import com.changgou.goods.pojo.Para;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface ParaMapper extends Mapper<Para> {
    @Select("SELECT tb_para.name,tb_para.options from tb_para INNER JOIN tb_category on tb_para.template_id = tb_category.template_id where tb_category.`name`=#{categoryName}")
    public List<Map> findParaByCategoryName(@Param("categoryName") String categoryName);
}
